package com.bsc.rtc.lib.libraries.RetrofitNet.OkioDemo;

import android.util.Log;

import com.bsc.rtc.lib.libraries.Constant;
import com.bsc.rtc.lib.libraries.utils.FileUtil;

/**
 * @auth zzw
 * @Date 2019/9/15 19:50
 * @Desc czz 日志 关键位置将错误日志输出到文件
 */
public final class CzzLog {
    public static void d(String content) {
        d(Constant.LOG_FILE_PATH, Constant.LOG_FILE_NAME, content);
    }

    public static void d(String path, String name, String content) {
        if (Constant.DEBUG) {
            OkioUtil.writeFile(path, name, content);
        }
    }

    public static void clear() {

        OkioUtil.deleteDirectory(Constant.LOG_FILE_PATH);
    }
}
